package patterns.bridge;

/**
 * Created by lenovo on 2016/11/24 0024.
 * 演示调用Shape实现类的draw方法，来实际使用桥接接口的实现类的方法
 */
public class BridgePatternDemo {
    public static void main(String[] args){
        Shape red = new Circle(100,100,10,new DrawRedCircle());
        red.draw();
        Shape green = new Circle(90,100,10,new DrawGreenCircle());
        green.draw();
    }
}
